
::@ECHO OFF

set workspace=elton.stoneman
set newView=//depot/ProjectX/R2/... //elton.stoneman/ProjectX/R2/...

::get current spec form for the branch:
set workspaceSpecPath=C:\%workspace%.p4
p4 client -o %workspace% >%workspaceSpecPath%

::append the new view to the spec:
GenerateP4SpecForm "APPEND" "%workspaceSpecPath%" "%newView%"

::update the client:
p4 client -i <%workspaceSpecPath%
